package com.mmcg.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * 作者：李嘉浩
 * 时间：2024-09-18-15:09
 * 功能：
 */

@Controller
@RequestMapping
public class CartController {

    @GetMapping({"/","/cart.html"})
    public String cart(HttpSession session,String returnUrl){
        Object name = session.getAttribute("name");
        return "cart";
    }
}
